<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>vue</title>
  </head>
  <script src="../vue-2.6.11.js"></script>
  <body>
    <!-- 模板 -->
    <div id="demo">
      <span v-bind:customId="id"> {{ message }}</span>
    </div>

    <script>
      // 数据
      let data = {
        message: 'hello ,Vue!',

        id: '_123'
      }

      // vm实例
      let vm = new Vue({
        el: '#demo', //挂载元素
        data: data
      })
    </script>
  </body>
</html>
